package com.edu.control;

import com.edu.javaBean.ConstantItem;
import com.edu.javaBean.Department;
import com.edu.service.ConstantItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;
@RestController
public class ConstantItemController {
    @Autowired
    private ConstantItemService constService;

    @RequestMapping(value="/getAllConstItem",method= RequestMethod.GET)
    public List<ConstantItem> getAllConstItem(String keywords){

        return constService.getAllConstItem(keywords);
    }
}
